package com.hsgene.shoppingcar.domain;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.hsgene.common.util.date.TimeJsonDeserializer;

import java.io.Serializable;
import java.util.Date;

/**
 * @description: 基因检测订单购物车表
 * @projectName: hdas-geneshop-server
 * @package: com.hsgene.shoppingcar.domain
 * @author: maodi
 * @createDate: 2018/10/15 10:11
 * @version: 1.0
 * Copyright: Copyright (c) 2018
 */
public class GeneticTestingOrderCar implements Serializable {

    private static final long serialVersionUID = -3504105504055082328L;

    /**
     * 逻辑主键
     */
    private String id;

    /**
     * 用户ID（地服、医生、患者）
     */
    private String userId;

    /**
     * 用户类型（1-地服  2-医生  3-C端用户  4-小程序用户）
     */
    private Integer userType;

    /**
     * 套餐ID(基于电商平台的商品ID)
     */
    private String packageId;

    /**
     * 购物车的数量
     */
    private Long amount;

    /**
     * 是否勾选 0－未勾选  1-已经勾选
     */
    private Integer checked;

    /**
     * 创建时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date createDateTime;

    /**
     * 更新时间
     */
    @JsonDeserialize(using = TimeJsonDeserializer.class)
    private Date updateDateTime;

    /**
     * 业务数据逻辑删除 0-代表未删除   1-代表删除
     */
    private Integer deleteFlag;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 删除类型（0手动删除 1 购物车结算删除）
     */
    private Integer deleteType;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public String getPackageId() {
        return packageId;
    }

    public void setPackageId(String packageId) {
        this.packageId = packageId;
    }

    public Long getAmount() {
        return amount;
    }

    public void setAmount(Long amount) {
        this.amount = amount;
    }

    public Integer getChecked() {
        return checked;
    }

    public void setChecked(Integer checked) {
        this.checked = checked;
    }

    public Date getCreateDateTime() {
        return createDateTime;
    }

    public void setCreateDateTime(Date createDateTime) {
        this.createDateTime = createDateTime;
    }

    public Date getUpdateDateTime() {
        return updateDateTime;
    }

    public void setUpdateDateTime(Date updateDateTime) {
        this.updateDateTime = updateDateTime;
    }

    public Integer getDeleteFlag() {
        return deleteFlag;
    }

    public void setDeleteFlag(Integer deleteFlag) {
        this.deleteFlag = deleteFlag;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public Integer getDeleteType() {
        return deleteType;
    }

    public void setDeleteType(Integer deleteType) {
        this.deleteType = deleteType;
    }

    @Override
    public String toString() {
        return "GeneticTestingOrderCar{" +
               "id='" + id + '\'' +
               ", userId='" + userId + '\'' +
               ", packageId='" + packageId + '\'' +
               ", amount=" + amount +
               ", checked=" + checked +
               ", createDateTime=" + createDateTime +
               ", updateDateTime=" + updateDateTime +
               ", deleteFlag=" + deleteFlag +
               ", remarks='" + remarks + '\'' +
               ", deleteType=" + deleteType +
               '}';
    }

}
